import { AxiosPromise } from "axios";
import { envConfig } from "/common/config/gateway.config";
import { service } from "/common/service/callApi";
import url from "/common/service/url";

const baseURL = envConfig.baseURL; // 接口当前根域名

// 获取数据列表
export function listPage(data = {}): AxiosPromise<any> {
  return service(baseURL, {
    url: url.getMeInfo,
    method: "get",
    data: data,
  });
}
